package com.purchase.ml.bean.req.report;

import com.purchase.ml.bean.base.PageDto;
import com.purchase.ml.utils.RegexpUtils;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * Created by kyyang on 2021/3/27 0:14
 */

@Data
public class ReportDealerReq extends PageDto {

    private Long dealerId;

    @Pattern(regexp= RegexpUtils.rexp1,message = "Format tarikh tidak betul: yyyy-MM-dd")
    @NotBlank(message = "Tarikh mula tidak boleh kosong")
    private String startTime;

    @Pattern(regexp= RegexpUtils.rexp1,message = "Format tarikh tidak betul: yyyy-MM-dd")
    @NotBlank(message = "Tarikh tamat tidak boleh kosong")
    private String endTime;


}
